import request from "../axios";
import axios from 'axios';
import { instance, plainAxios,instanceFlask }  from "../axios";

export const fetchNewVideos = () => {
  return instance.get(`/torrents/latest`);
};
export const fetchRecommendVideos = (userId) => {
  return instance.get('/torrents/recommend/collaborative' ,{
    params: {
      userId,
    },
  });
};
export const fetchHotVideos = () => {
  return instance.get(`/torrents/hot`);
};
export const fetchRecommendBelow = (infohash) => {
  return instance.get(`/torrents/${infohash}/collaborative`);
};
